<template>
  <view class="">
    <xxm-layout>
      <template #header>demo2头部</template>
      <view class="box1">box1</view>
      <view class="box2">box2</view>
    </xxm-layout>
  </view>
</template>

<script setup>
  import { ref, computed } from 'vue'
</script>

<style lang="scss" scoped>
  .box1 {
    width: 100px;
    height: 100px;
    background: pink;
  }

  .box2 {
    width: 130px;
    height: 130px;
    background: green;
  }
</style>